<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    <h1>我的名字叫{{name}}</h1>
    <input v-model="num"/>
    <h1>有{{num}}位妹子迷恋我</h1>
    <button v-on:click="fun">我是按钮</button>
</div>
</body>
<script src="node_modules/vue/dist/vue.js"></script>
<script>

    const app = new Vue({
        el:"#app",
        data:{
            name:"刘德华",
            num:100
        },
        methods:{
            fun:function(){
                alert("你好");
            },
            fun2(){

            }
        }
    });
</script>
</html>